/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services.interfaces;

import java.util.Collection;
import models.Messages;
import models.Users;

/**
 *
 * @author SERGA
 */
public interface IMessageService extends IGeneric<Messages>{
    
    public Collection<Messages> getMessageByIsRead(Boolean isRead);
    
    public Collection<Messages> getNewUserMessage(Users user);
 
    public void sendMessageToUser(Users from,Users to, String message);
    
    public Collection<Messages> getUsersDialog(Users to, Users from);
}
